<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精灵图</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            background-image: url(../格式化文本/img/beijing.jpg);
            background-size: cover;
            background-repeat: no-repeat;

        }

        .box1 {
            width: 142px;
            height: 200px;
            margin: 100px auto;
            background: url(./img/2323.png);
            background-position: 0 -179px;
        }

        .box2 {
            width: 160px;
            height: 200px;
            margin: 100px auto;
            background: url(./img/2323.png);
            background-position: -527px -772px;
        }
    </style>
</head>

<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>

</html>